export function login(username) {
  return new Promise(resolve => {
    setTimeout(() => {
      console.log(`${username} 登录成功`);
      resolve({
        id: 162345,
        username
      });
    }, 1000);
  });
}